// import mongoose from "mongoose";

// const schema = new mongoose.Schema({
//   title: {
//     type: String,
//     isRequired: true,
//   },
//   isDone: {
//     type: Boolean,
//     default: false,
//   },
// });

// const TodoList = mongoose.model("TodoList", schema);

// export default TodoList;

import mongoose from "mongoose";

export default mongoose.model("TodoList", {
  title: {
    type: String,
    isRequired: true,
  },
  isDone: {
    type: Boolean,
    default: false,
  },
});
